FROM registry.cn-hangzhou.aliyuncs.com/truth-ai/python:3.10.13-bookworm
WORKDIR /app
EXPOSE 8000
LABEL MAINTAINER=Zhong

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

# 安装
COPY . ./

VOLUME [ "/app/config.yaml" ]

ENV ENVIRONMENT=dev
ENV CUDA_VISIBLE_DEVICES=0
ENV HF_ENDPOINT=https://hf-mirror.com

CMD ["python", "app.py"]
